home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15738 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.os.linux.development.apps,comp.unix.programmer,comp.lang.c
  2. Path: netcom.com!smryan
  3. From: smryan@netcom.com (@#$%!?!)
  4. Subject: Re: Assembler Statement in C program
  5. Message-ID: <smryanDq7ppy.K5t@netcom.com>
  6. Followup-To: comp.os.linux.development.apps,comp.unix.programmer,comp.lang.c
  7. Organization: The Programmer formerly known as S M Ryan
  8. X-Newsreader: TIN [version 1.2 PL1]
  9. References: <317A2105.77EF485@bis.co.il>
  10. Date: Sun, 21 Apr 1996 12:37:09 GMT
  11. Sender: smryan@netcom15.netcom.com
  12.  
  13. : I'm trying to port some piece of C code to linux/unix.
  14. : This code contains statement in assembler.
  15.  
  16. : 1. How can I compile it under linux with gcc or gas ?
  17.  
  18. I have no idea.
  19.  
  20. : 2. Will this be portable ?
  21.  
  22. Only to other DOS machines.
  23.  
  24. If you're running X-Windows on an x86, you don't want to use BIOS to
  25. clear the screen; and if it's called BIOS on a Sparc, it is a very
  26. different (though forthright) BIOS.
  27.  
  28. Although the concept is portable, no implementation is, so you'll have
  29. to do something specific for the system and display. For example, if
  30. you're doing X-Windows, you can clear a window with X calls, or with
  31. curses if it xwsh, or something of that ilk. On a Mac, you set up the
  32. clipping region and fill it. On a glass tty, you can you curses or look
  33. up the terminal clear screen code (or send a few dozen new lines).
  34.  
  35. -- 
  36. The Queen who loves, the Queen of life,    | smryan@netcom.com  PO Box 1563
  37. the Queen who straits, the Queen of strife;|          Cupertino, California
  38. with gasp of death or gift of breath       | (xxx)xxx-xxxx            95015
  39. she brings the choice of birth or knife.   |         I don't use no smileys
  40.